package com.platform.service;

import com.platform.dao.WagescRecordDao;
import com.platform.entity.WagescRecordEntity;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Service接口
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-21 10:40:24
 */
@Service("wagescRecordService")
public class WagescRecordService {
    @Autowired
    private WagescRecordDao wagescRecordDao;

    public WagescRecordEntity queryObject(Integer id) {
        return wagescRecordDao.queryObject(id);
    }

    public List<WagescRecordEntity> queryList(Map<String, Object> map) {
        return wagescRecordDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return wagescRecordDao.queryTotal(map);
    }

    public int save(WagescRecordEntity wagescRecord) {
        return wagescRecordDao.save(wagescRecord);
    }

    public int update(WagescRecordEntity wagescRecord) {
        return wagescRecordDao.update(wagescRecord);
    }

    public int delete(Integer id) {
        return wagescRecordDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return wagescRecordDao.deleteBatch(ids);
    }
}
